package com.design03_behavioral.pattern23_mediator.example01;

/**
 * @ClassName 抽象同事类
 * @Description TODO
 * @Author 22963
 * @DATE 2023/9/11 1:16
 */
public abstract class Colleague {

    private Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    public Mediator getMediator() {
        return mediator;
    }

    public abstract void exec(String key);

}
